Optimize script to 15kB