Update minified script and corrected minor js errors