updated minified script. Also updated the callbacks