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 :(