add Karma for testing. Fix JST paths