Ok, now it works in firefox and chrome, problem still not solved
Ok, with some protection
Revert "Ok, with some protection"

This reverts commit b23932643731da9fcf2d0eaf2c20ac5e307e119b.
Ok, with some protections, though, terrible code