Clean-up javascript using jshint.