Added testing with Jasmine and PhantomJS.