add UMD support. fix #787

reveal.js now works for me using [browserify](http://browserify.org/). :)