added flag --es6
passing es6 option to template
adding 6to5 loader
added 6to5 loader in webpack configs