Small javascript object/array semantic extension utility