add index.js to expose internal class