Fix for comments

Maybe it is worth to export wgEnableGlobalNav to js