jshint and JS coding standards fixes