Fix jshint warnings, simplify collaborative string monkeypatch