Changed order of scripts
continued work on script.js