Some minor changes

ran the code through a beautifier, and then made it pass jshint. might fix up some issues with the minified version.