(Bug 50841): First pass reducing scope of nowiki tags

* This still feels a little crude, but does the job for now.

* Unrelated: Fixed some jshint complaints.

Additional tests:

------------
[subbu@earth lib] echo "Links in wikitext are written like this: [[foo]] How magical\!\!" | node parse --html2wt

Links in wikitext are written like this: <nowiki>[[foo]]</nowiki> How magical!!
------------
[subbu@earth lib] echo 'Hello my [[name]]*(see below) is Julian and I live in the city of Rochester, New York\nwith my friend Sandy; we write [[books]].' | node parse --html2wt

Hello my <nowiki>[[name]]</nowiki>*(see below) is Julian and I live in the city
of Rochester, New York with my friend Sandy; we write <nowiki>[[books]]</nowiki>.
------------
[subbu@earth lib] echo 'Hello my [[name]]*(see below) is Julian and I live in the city of Rochester, New York to \n* escape with my friend Sandy; we write [[books]].' | node parse --html2wt

Hello my <nowiki>[[name]]*(see below) is Julian and I live in the city of Rochester, New York to
* escape with my friend Sandy; we write [[books]].</nowiki>
------------
[subbu@earth lib] echo "[[foo]] [[bar]] [[baz]] x [[foobar]] [[moobar]]" | node parse --html2wt

<nowiki>[[foo]] [[bar]] [[baz]] x [[foobar]] [[moobar]]</nowiki>
------------
[subbu@earth lib] echo "[[foo]] [[bar]] [[baz]] longer string [[foobar]] [[moobar]]" | node parse --html2wt

<nowiki>[[foo]] [[bar]] [[baz]]</nowiki> longer string <nowiki>[[foobar]] [[moobar]]</nowiki>
------------

Change-Id: Iac2cf7470bb566372fd856250fbbeef2e37e4156
Merge "(Bug 50841): First pass reducing scope of nowiki tags"