move use strict declarations to inside functions
Merge pull request #300 from terite/use-strict

move use strict declarations to inside functions