change onload functions to use jquery