made lib folder
added jshint, fixed code
modified readme and package json (npm test call mocha)