scripts not working for SPA? 🐛
**Describe the bug** 🐛
Scripts appear to not be running for the 'first' time as the document and route load.

**To Reproduce** 👨‍🔬
try: 
```
    tScript(type="text/javascript"): """
      console.log("Hello, world!");
      """
```


**Expected behavior** 🤔
Script should run once as app loads. 

Instead nothing writes to the console.

If you use importjs to create a proc that does the same thing, then attach that to a button's `@click`  event, it works.

```
proc writeToConsole(s: cstring) {.importjs: "console.log(@)".}
...
    tButton:
      "test"
      @click:
        writeToConsole(s="success")

```
But it only works with the event of the button click. This, for instance, does not work:

```
    "/":
        writeToConsole(s="success")
```