Pull out the rest of the magic constants while we're at it
Wrap JS with an immediate function to reduce line noise: this allows defining functions normally, and assigning them to the window.ribbit namespace in one clean declaration at the end. It also makes sure we don't leak the above constants into the global namespace.
window.ribbit
namespace in one clean declaration at the end. It also makes sure we don't leak the above constants into the global namespace.