Fixing lint errors

Could we wrap this whole file in a `function(){ 'use strict'; ...` instead?