Nanobar is a function, not an object