app.js: versionCompare: Use correct comparison type per-interval (instead of deciding once for all intervals), and improve comments.