I have a time range expressed in military hours, e.g. 

```
10-14 

```

I need to make it look like this:

```
10:00 am - 2:00 pm

```

I came up with something like this, but I think it's a bit too convoluted. Can it be simplified even further?

```js
var hrFr = "10",
    hrTo = "14";

var t  = (hrFr > 12 ? hrFr - 12 : hrFr) + ':00';
    t += (hrFr >= 12 ? ' pm' : ' am') + ' - '
    t += (hrTo == 24 ? ' midnignt' : (hrTo > 12 ? hrTo - 12 : hrTo) + ':00' +  (hrTo >= 12 ? ' pm' : ' am'));

alert(t);
```