add benchmarks

Benchmark pageguide's basic functions using benchmark.js and display the results in the DOM. Also, add `_open` and `_close` helper functions to pageguide.js in order to test more accurately.