fix package.json
Add README file and test/usage case for trigger.js