Sample code on JS object equality