1// https://www.example.com?name=n1&name=n2
2let params = new URLSearchParams(location.search);
3params.get('name') // => "n1"
4params.getAll('name') // => ["n1", "n2"]
5// SOURCE : https://stackoverflow.com/questions/814613/how-to-read-get-data-from-a-url-using-javascript
6// REPLY : Franklin Yu