Array Push In Front Javascript Substring Indexof