generates directory indexes, automatically, with memorization, for Nodejs