added functionality to convert the shopping cart to json
now users can specify the width of the room (canvas) element