jshint and build fixes