compile public stuff into build dir
fix jshint warnings