Bash Script Array Size In Javascript Object To String