Made a npm module called [await-transaction-mined][1] for this specific problem.

    const awaitTransactionMined = require ('await-transaction-mined');
    (async function() {
       var txHash = '0x6ee5d58c314d183f3ca70e2292b39dca5ae46141fe4e6b1da5b106dd506e589a';
       const minedTxReceipt = await awaitTransactionMined.await(web3, txHash);
    })();


  [1]: https://www.npmjs.com/package/await-transaction-mined