added lib folder; added index.js; easier to include the library