uniformisation of the way the idle state are detected (using chrome idle
API)