https://notesontech.com/javascript-get-url-parameters/
How to get URL parameters with JavaScript