dynamic js routing