JavaScript: Improved condition for outlining.
Merge pull request #528 from am11/master

JavaScript: Improved condition for outlining (#526)