Added js onload function