Fix reveal javascript api to match docs.
Merge pull request #3850 from webflo/fix-reveal-js-api

Fix Reveal Javascript API to match docs