Javascript hash router, similar to that of ExpressJS