Fix IE mode and remove unneeded code
Merge pull request #316 from geoadmin/fix_examples

Fix IE mode and remove unneeded code