ES6 support

Fixes #3