Simple object sample for javascript