adds JavaScript implementation to insertion sort post