iPhone 4S or 5 this year in JavaScript

If (iOSRelease == 5 && releaseYear == 2011) {

iPhone = “5”;

}

else {

iPhone = “4S”;

}