made compatible with modern jquery/jquery ui

added a small UA sniffing to make up for $.browser being gone. Fixed
demo with modern version
fix and update trivial things
finalize v0.5.2