adds delay to login box js