Bash Script Array Size In Javascript Object Syntax