JS tweaks to make jshint happier
Check JS files on dev builds
More fixes to make jshint even happier