JavaScript: getQueryVariable