Fixed issue when JSON = require('json-ie7') was undefined