Phonegap / Drupalgap / jQuery Mobile: Use "pageinit pageshow" events together to ensure functionality