Iterate Over Array For Loop Javascript Syntax