https://blog.chapagain.com.np/jquery-uncaught-typeerror-url-indexof-is-not-a-function/
jQuery: Uncaught TypeError: url.indexOf is not a function