bash command `ls` in pure javascript