Add more checking against bad/dangerous code
Merge pull request #10 from Manishearth/master

Some checks
Fix on stupid Firefox