js, properly catch change of value on reset click on initial value