from $(document).ready(function to windows.onload= function

on load