Integrated jquery and replaced body onload event with dom ready event handler.