When using jQuery Mobile, .pageinit() should be used.