Converted @onload to jquery syntax