added javascript array function. added new id to additem page.