Fixed some revealjs compatibility bugs, refactored some code
Merge branch 'updateReveal' into develop