cleaned script.js