FIX JS issue when enabling save buttons for when the content has changed...

.... Current implementation triggers a 'Object is not a function' error. New implementation follows the same logic as in the onmatch function, and uses .button() as the function