"use strict" in most (if not all) our javascript

+ fix one variable leaking in global nameespace
Merge pull request #3969 from Carreau/usestrict

"use strict" in most (if not all) our javascript

plus fix one variable leaking in global namespace