javascript home delay time