Shell Script Loop Through Array Javascript Function How To Use