Fixing infinite refresh on Safari

Closes #13
Merge pull request #15 from kevmoo/master

Fixing infinite refresh on Safari