Refactor: use FunctionSupport
Minor: remove procedural syntax
Remove unneeded 2nd arg to xxf:instance()
Remove unneeded CSS selector for navbar in PDF
Indent
FB: remove unneeded event filtering
For #1553: better inner id resolution