Adding support for karma testing.