Oracle Loop Through Array Javascript Append Method