node require.extensions that works properly