Add Jasmine tests.
Update README.
Merge branch 'tests'