fix(directives.js): Fixed issue with activeNav directive firing before DOM is loaded.