add globals and use strict to remaining files