Fixing some javascript for "Pay what you want" issue