add Karma for some js testing