fix js reference error
fix jshint error
refactor project build script