Added "use strict" directive to first portion for function defined for requirejs.