move everything into its own js file
* main.js is now the place to be
* removed script at end of app.haml and moved it into a fancy $(document).ready
* fix showCode (i'm sort of dumb)
* add getCode (general all purpose code getting function)