Move the status switch javascript out of the product js handler