Made loading global.js.detail files directly from code