Added document onload event