In the rules of the Jam you'll find an info that anything that can be played in a browser can be considered a valid entry. You could've used only JavaScript, HTML and CSS, but exporting from Unity or Unreal is also ok, as long as "Play in browser" platform is selected.