refactoring for testing

testing with jasmine added.
travis yml file added.