-Make sure that all scripts done loading before loading the router.js