Big cleanup

Issue #3

Cleaning up the file a bit.

Grouped the functions together and alphabetized them so I can find them
more easily.

Grouped event handlers together.

Moved the global-ish function call to the bottom; it looked reaaaaaaly
weird in the middle of the file.

Refactored some code into their own methods, removed debugging output,
added comments, removed unnecessary variable assignment, and clarified
what was meant by some more obscure local assignments.
toggler.on("mousedown"), for example, made a copy of $(this) in $this
but the thing I actually want to act on is $(".toggle").