[JSLint] add 'use strict', remove globals