Fixing some focus issues#2 - Switched the statements inside setTimeout