Hooking the "mobileinit" event. Note: the hook is 
before loading jQM.