added the closure to jquery.ui