static/js.. zone: fix inverted condition.
static/js.. viewer: jslinted code.