Correcting JS.
Variable renaming