jQuery Mobile redirect on load abstraction