Experimental JavaScript module to generate all possible variations of strings over an alphabet using an n-ary virtual tree