[advanced] Access unknown revapi var at runtime

If you’re a theme author who wants to hook into the slider’s API, but aren’t always going to know the exact “ravapi” identifier to use, here’s a way you can grab it from the page at runtime: