Why isn’t it ?

The way JavaScript works is we can do scripts as an inline block: