How to get URL parameters in JavaScript for pro Level