works with newer jquery ui versions