Added jasmine unit tests for client side