some messing to try to get shopping list working with javascript