move use strict declarations to inside functions