modify js: add active class not befor but after page loaded