Minor fix in checkout JS file