Updated implementation for Safari 6.1 and 7

See http://www.broken-links.com/2013/07/10/web-platform-technologies-in-safari-6-1-and-7/