Bash Array Implementation In Javascript Alert