Space Invaders game - Java script help

Would anyone be able to help with how to attach the code to the webflow page?

For a 404 page.

https://github.com/pjnovas/invaders404