Merge pull request #221 from rrthomas/master

Tweak a ternJS pattern
Add .dir-locals.el for Emacs (replaces PR#164)