psychopy.org | Reference | Downloads | Github

Import javascript library error

Can somebody help me debug this error?
It says “Cannot use import statement outside a module” on line 3