Sorting/JavaScript: Added insertion sort