Membership js fix to work in popup