I don't know if the collision works. The beam seems to stop when it hits an enemy, but it could be that it's just clipping into the enemy, and then the rest of it is no longer visible. I am using Firefox and my computer uses Linux Mint, if that helps.