Moved transpile and handlebars code to plugin files