fix linter errors (undefined variables mostly)

#336

I'm not a huge fan of linting tools and strict mode in particular (please don't use it anybody), but `DEFAULT_FILE_PATH` variable available in all child processes, and global short variable `p` sounds like a big deal.

PS: `delete x` is no-op in javascript.