added code to script.js, incomplete.