Yes it works fine now, there were a few errors in the code but marshian fixed them.
It would be cool if the nostock.html redirected to the buy.html page once there were some in stock; otherwize someone might bookmark the nostock.html page to check later but they would never see that there...