Get String After Index Javascript Foreach Continue