Wrapped use strict statements in a clouser
Updated console.log to .error