document.ready calling function inside script file loaded in body code example Example: ready function jquery ready function js