Fix Reveal Javascript API to match docs

The initialization of Reveal Modals with AJAX content is currently broken. Some other people reported this bug in #3799 and #3444.

The first example from the documentation (just a simple url) also does not work. I added a small if condition to convert ajax_settings string to an object with url property.