https://stackoverflow.com/questions/5523747/equivalent-of-pythons-dir-in-javascript