How to use jQueryUI dialog for rails and ajax