Support ES6 module syntax

Closes #175