https://stackoverflow.com/questions/47432751/how-to-get-the-index-of-the-backslash-in-a-string-in-javascript