Added getUrlParameter function