Added jshint configuration.
Fixed bunch of Javascript syntax issues.