Added globals map.
Added extra closure to avoid having to add the "use strict" statement to every function.