have a kind of window on load function queue, should maybe use a plugin or something