Finally, inteligent timeDiff function. Math.abs removed, because that just doesnt make any sense