Reworked all my code, added in additem.js

As well as main.js for index page. May 14, 2013