added karma for js testing