Bash Variable To Array Javascript Length Of List