add tests using karma and jasmine re: #11
to run tests, navigate to tests directory and run
> karma start my.conf.js