Revert "Made the JavaScript more evil"

This reverts commit 37e6f6229e72366f09da103822538f5da94d5c2e.