Javascript Foreach Loop Through Pandas