tweak JS for email capture