Fix some JSLint complaints

Added 'use strict' to functions