`"use strict"` should probably go at the top-level function, i.e., right below `(function(env) {...`, so that `"use strict"` is applied to everything in it.