A simple component and javascript api for navigation bars