We should make the chat into a dependency, using jquery in a angularjs controller is usually bad practice.
Because we are migrating from plain jquery we maybe need this class for a while until everything is angularjs.