Shell Script Loop Through Array Javascript Append Function In String