sale and sal_items javascript