Better timings on js