Thank you so much man!! I'll be working on fixing the bug, but it only happens in the exported version and I have no clue what causes it :(
Yeah I always find loads of funky stuff happens in HTML5 that doesn't occur normally :(
Strangely it also happens in the exe version, but then the screen freezes and doesn't turn black. Very strange bug :(