Switch to es6 exports instead of an object