cleaned up some code in router.js
made a way to manualy check the hash