Update js/router.js

added routing support for url with "index.html" as trailing  text