Compatibility fix for jquery_ujs in Rails (fixes #9).