Jquery extension to center elements on a screen