[BUGFIX] Set active tab when DOM is ready