Configure Karma to use PhantomJS.
Remove invalid e2e tests.
Remove extra character from whitespace replacement