my router in javascript.