Get String After Index Javascript Foreach Callback