Make javascript tweaks as per jshint task.
Fix config for newer version of Karma.
Fix command in README.