I've heavily updated the GOLD's main.js file.