changed the jquery page function to windows.load