updated the onload.js file