Enable TX Release and Retry Fix

constants like these must be defined in one place.

```
var STATE_NEW = 'New'; //although I'd prefer this to be a byte value, faster comparison, less memory used, less data to transfer. If states are somewhat orderable it's also an advantage.
var STATE_PAID = 'Paid'; 
...
```
Makes it easier for refactors, finding references, although at the current state of javascript it's not really a constant.
However, ECMA 6 has already defined a `const` keyword.

When ECMA 6 interpreters are available, your code will be more secure as all you'll have to do (in one place) will be adding that constant:

```
const STATE_NEW = 'New';
const STATE_PAID = 'Paid'; 
...
```

DRY mantra in effect.