Updating demo js and minified js with the closest fix