Renamed onload parameter to ready