"Out of stock behaviour" JS