Percorrer Um Array Javascript Functions With Parameters