add missing var
removed unnecessary semicolon
move variable declaration
Merge pull request #124898 from mauk81/jslint

jslint