Researched a bit into it and it seems like support to build the game into html has been stopped after 4.27 (I used 5.2 for this project) which is a shame but there is a really hard way in which you can try the use of third party programs but results can vary