Added in an app initialize method, and a jqeury event listener for new messages therein