visit all the values of a javascript object