I think you can get rid of most of the UA parsing and just use `A.UA.gecko` (which will return the version number).