dont use process.nextTick and always return a boolean from checkDones page.evaluate