Run jshint and builds on travis

Travis will create 5 subbuilds - one for jshint and 4 for platform builds
Fix obvious errors reported by jshint