Add ES6 support. Closes #37