Moved use strict declarations inside functions