Javascript function to get URL params. ($_GET as in PHP)
Gist embed for https://www.errorisme.com/2019/11/mengambil-url-parameter-dengan-javascript.html
Source: https://web.archive.org/web/20190329105427/http://papermashup.com/read-url-get-variables-withjavascript/ with small modification.