Linked js file to additem page and created initial function

Linked the main.js page to the additem page as well as created a
"wrapper" function to execute only when the additem page is finished
loading.  Thanks for the tip, professor!