Thx, yes better with triple-equals :-), but BTW I use index !== undefined to avoid the call to reloadItems when the element has been just added.