fix jshint warnings and update build