Create Array With Initial Values Javascript Foreach Object