jshint cleanup and make require.js optimizable

some lint cleanup stuff to tame the jshint beast

but mostly, this patch is about require.js

when you passin the require module through the define function, i'm unable to get r.js (require's node module for optimizing scripts) to properly optimize beautify-html. my guess is that it does not read that beautify-html has two dependencies.

however, when using define's first parameter option which is to pass an array of dependency, r.js properly picks up the dependencies and bundles them in the optimization process.

i'm using this over at coursera and with these modifications it works great in our build process.