using es6 with a compilier