JavaScript reinforcement