Transpiling ES6 code in external js file