Added “var reference” into the scripts.js for each slide