Tidying.
Disambiguating some boolean comparsions at the suggestion of @danshultz.
Enable javascript: URLs with the stencil.

As suggested by @scottfr. Closes #214.