JavaScript steps for Card fixed