I am executing a try catch block within a script tag on my ejs webpage.

My server renders the page sometimes with the token & user, and sometimes without. Each time I passed through a variable I would do the `var x = <%- JSON.stringify(x) %>;`. This time I did it, since there was nothing passed in, it gave me an error.

This is not the issue. The issue I am running into is that it does not seem to work! See the below code:

```
try {
            var Token = <%- JSON.stringify(Token) %>;
            var User = <%- JSON.stringify(User) %>;
        }
        catch(err){
            console.log("there is no token/user");
        }

```

I want for my code to try to initlize these variables, if they were passed in from the res.render function from the server. If they were not passed in, no problem, just continue on.