Rename toJson.js to main.js
Refactor main.js
Add package.json