Remove SITEURL from templates
Remove SITEURL from settings
replace closure with jsmin