JavaScript: More robust condition for outlining.
as per @SLaks' comment at
madskristensen/WebEssentials2013#528.
Merge pull request #531 from am11/master

JavaScript: More robust condition for outlining