Don't lint ignored demo.js (I use it for quick tests)
Add a closing bracket to the prereg list.

This fixes a bug where code like `a[1] / 12` would trigger an
unclosed regular expression error.

Closes GH-803.