regret for misuse of javascript