Optimize script and images