optimized scripts for faster load times