create router.js, use popstate