Add karma for testing js