I wrote a script to load some contents from AWS server, but before executed script completely cursor move to document ready function and perform some operations at there, so