Reordered onOpen callback trigger

In a popup, if we set focus on an object in the onOpen handler, we lose that focus in the open() call due to the call to appendTo (line 114). This was happening in Chrome / 25.0.1364.152, I haven't tested other browsers