Get Element Css Selector Javascript Foreach Callback