A simple way to handle PhoneGap/jQueryMobile deviceready issue.