C Program For Selection Sort Using Functions In Javascript