[build] Add unit testing with Jasmine and Karma.