Fixed bug: if newContainer is $window, just assign ($window.last was assigned before fix)
Added useDocumentBottom option to fix issue with absolute positioned children.