Get Array From Object Javascript Definition