making a page to test out insersion sort in javascript