use 'this.then' instead of:
var then = 'then';
var a = this[then];