fix for jshint, refine build steps