Merge pull request #10 from TomyMMX/master

This fixes some strange behavoiur on old browsers.