scripts.js now uses object literals