Removed onload function, in init instead