Angular Create Json Array Javascript Example