updated minified version of script