I’m not sure which error you are still having. However, if it’s unknown resources, I’d recommend that you look at these links:
https://psychopy.org/online/resources.html
https://psychopy.org/online/psychoJSCodingDebugging.html