added jasmine js unit tests

with one passing tests got chat controller
Merge pull request #22 from denisstepanenko/js-unit-tests

added jasmine js unit tests