Added event to onload for firefox.