map card step fix javascript