Bug in line item create js file