https://tutorial.eyehunts.com/js/javascript-get-all-url-parameters-example-code/
JavaScript get all URL parameters | Example code