Configuration for continuous integration service

* Added a travis config file.
* Did some refactors to fix JSHint warnnings.

[Travis](http://about.travis-ci.org/docs/) is a hosted continuous integration service for the open source community.
Take a look [here](http://about.travis-ci.org/docs/user/getting-started/) to know how easy is the configuration for continous integration service.

I hope you'll enjoy it.