Fix judgement of performance.now