iOS Version Detection in JavaScript