Modifying markup on addItem.html

Move method from string.js to main.js and remove string.js