add karma for browser js test
added karma test example for client side