Update javascript template to reflect changes in PHP

When saving the page renders with two navigation bars without
this
Fixing Bug 44130 would have helped with this.

Change-Id: I742eb3587f3736a9c1932bc86ee59c4fe26ca434
Merge "Update javascript template to reflect changes in PHP"