Improve header-bar

Also add temporary js functions for local editing