setup the js router