Fix for Safari
Merge pull request #5 from lifof/master

A little fix for Safari