move getParameterByName() into loginwindow JS