Moved init code to a load event. Moved media to same domain - for firefox.