Fixing JS routes