Reconfigured script.js to match core.js