added karma test for client controller
fixed jshint issues
Merge pull request #299 from reviewninja/feature/karmaTest

Feature/karma test