use a JS router