jsnews: fix top navbar not being inserted and add some API docs