fixing some changes I made to try and get an onload() to return values. Won't work. Going to have to do a callback