Update code for JSLint conformation