correction javascript