Correct an error on the javascript code block