Ouch, over half a meg is definitely too big. AFAIK for any Espruino.
Memory usage is not directly tied to file size, but to give a rough estimate: 10k JS file most likely will work on the Pixl.
If you can get it down to 20k, probably you can try to get it working on the Pixl.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
If there's need for it, I can clarify what is happening in the bundled file. However I didn't seem to be relevant for uploading the code.