main js and prezi controls (untested)