use clientside collection to manage places in javascript