Fixing glitch JS.