nl_tokens: Make sure only valid JavaScript files are used as source . Ignore other files like . log files . Also allow constructors .
pl_tokens: function js ( file ) { var type = is ( <mask> ) ; return 'function' === type || 'string' === type && path . extname ( file ) === '.js' ; }