Cleanup (see extended description) ~Doorknob

Hey Undo, it's Doorknob :D

I fixed the `$`/`jQuery` weirdness, added some `+=`s and `++`s, changed up some line breaks, fixed some inconsistent styles, abstracted some stuff into functions, made jQuery element creation cleaner, and made readability bettar in general.
Merge pull request #1 from KeyboardFire/patch-1

Cleanup (see extended description) ~Doorknob