manually applied commit https://github.com/sstephenson/prototype/commit/9ca2e6a0445a77858d8a84588c03901c2e0b45b4

also reverts
https://github.com/jwestbrook/prototype/commit/f07680b79fe0c660314d653e4
7eb4a1ef3046e51