Fix for iOS 8 Safari.

Fixes #4.