Observer Pattern in a SharePoint hosted App