update scripts for safe minification