Includes Function In Javascript Array Sort Algorithm