Expose index.js correctly for API