Replaced deprecated method "live('pageinit') by on.('pageinit', '#page')