demo of using es6 and npm