Bash Initialize Associative Array Javascript Function