Depending on the structure of your HTML, you probably don't even need jquery to do this. If you know exactly where you want them to be in the window, you can use CSS position: absolute; for both of them. This page pretty well explains how to use the CSS position attribute in different ways to place divs pretty much, but you may like it.
EDIT: I edited the script with
body{ padding:0px; }
To build them at the top, the window by default has some addition that affects everything that is not position: absolute;
source share