Simplified script.js