Fix iOS7 to work in WP and Firefox. Closes #172 and #224.