Create Array With Initial Values Javascript Foreach With Index