Add jasmine unit test
Run tests with Karma
Merge branch 'master' into gh-pages