now with tests! added mocha/phantomjs/chai for testing.

need to expand testing. also travisCI has been added