[foundation.reveal.js] replace bind(this) with local context variable

Fix compatibility issue with the use of `.bind(this)` and the Capybara testing framework. Exceptions were encountered when using the Capybara WebKit driver or PhantomJS  Poltergeist driver.