match PHP and NodeJS directory structure