Minor fixes - add full JSLint compliance