fixed Javascript in additem.tmpl