run the code through http://jsbeautifier.org/
make it pass jshint