changed main and script.js