added index.js to expose library