modified saveItem(), added param specs. this function accepts (name,energy,specs) or two strings and a javascript map (array)