Edited code to be ES6, added eslint and some basic linting configuration,(also includes husky for auto eslint before push)