Export functions in index.js