Navigation extension for scalable JavaScript application (YUI3 is the base library)