determine path by .js extension.
deep dir$.