Made script.js less stupid