Moved (static) properties of the error modal window from js to html.
jslint at its best: missed a semicolon. (Also a nonfunctional change:
moved a var out of a loop declaration)