Add karma for running JavaScript tests