create macs array
array manipulating with basic functions + concat in js