feat: compile es6
refactor(index): use es6 features
Merge pull request #1 from excellenteasy/es6

ES6