Updated insertionSort.js

Uses InsertionSort to sort the input array