moving scripts and styles to strings vs regex