public static function javascriptRedirectUser($url, $numSeconds = 0)
    {
        $htmlString = '';
            
        $htmlString .= 
            "<script type='text/javascript'>" .
                "var redirectTime=" . $numSeconds * 1000 . ";" . PHP_EOL .
                "var redirectURL='" . $url . "';" . PHP_EOL .
                'setTimeout("location.href = redirectURL;", redirectTime);' . PHP_EOL .
            "</script>";
            
        return $htmlString;
    }