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