cleanup js

no need for extra nesting, or for handlebars lib in repo