Added pagehide/pageshow events; close #58