JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://cdnjs.cloudflare.com/ajax/libs/q.js/1.0.0/q.js"></script>
<div class="results">
    <div class="first-check">
    </div>
    <div class="second-check"></div>
</div>

JavaScript

var global = { _:'global' };
var that = global;

var toPromise = function(){

  return new Q.promise(function(resolve, reject, notify){

    document.querySelector('.first-check').
    innerHTML= "First check: this === that is " + (this === that);
    resolve(that);

  }).then(function(that){

    document.querySelector('.second-check').
    innerHTML= "Second Check: this === that is " + (this === that);

  }.bind(this));
}.bind(global);

toPromise.bind(global)();