fixed the Script definition to account for the change in funcitonality of addItem, removeItem and removeItem