Fix js that calculates credit and total in booking#new