The rules are rather loose - it does not have to be JavaScript as long as the result will work in the browser withour any extra plugins. For example: Unity export to WebGL, or tools like GDevelop or GameMaker, are all ok.