Making script.js smaller