Not sure why onload isnt a function