How To Concat Array In Javascript Functions And Parameters In C