Module pattern for the navbar