added fix for safari 7
added fix for safari 7
Merge remote-tracking branch 'origin/fix-IE11' into fix-IE11
added fix for safari 7
removing duplicated code from merge
updated with the code suggested by @mateus007
Merge pull request #3 from fmquaglia/fix-IE11

Fix for IE 11