Exception: JavaScriptmethod no method "onAlarmsLoaded"