fix jshint errors and generate min js