code kata: insertion sort with js
add comment to explain the requirement