Update main.htm

added JS for adding items