Add script.js to optimize components