fix JS error with current jquery.ui