fixed syntax based on jshint
added .travis.yml
updated package.json