[module] Handle omitted .js extension in require()