Update router.js

https://github.com/BlueSpire/Durandal/issues/412