adding index.js
adding package file
adding test file to run the program