js email selection tool