added jasmine js unit tests

with one passing tests got chat controller