Fix JS router