Add timer in js