add use strict, update codebase to be lint compliant