Fix js routes