JS: recursive object's property analysis.