changed script to minified version