add events.js for use of events module
add package.json
add dependencies and ignore node_modules