cleaned up some JS and upgraded the handlebars library