fix for javascript routes