Refactored the js and adding karma as test runner
Fixed entity update test
Removed unused test