Updated jquery to fire on mouse leave instead of 'change'

This way, users can’t click the add to cart button before it validates
the input.
Updated for out of stock functionality