Wrap all onLoad functions into $(function(){})