re-add missing javascript on navigation, widget, and privilege management