Minor javascript optimizations

Per Timo:
* semicolon in the dynamically inserted javascript (zcmd=js-banner)
* attach click event handler to the document instead of each anchor
  (follows-up 31e3d8c22d06).

Change-Id: I8e65195c284a8299ff2d122217c26be5351974c5
Merge "Minor javascript optimizations"