Fix compatibility with IE6.
Update demo files.
Merge pull request #1 from mudkipme/master

Fix compatibility with IE6.