expose pageJS & added pathKey as popstate handler param