A JavaScript implementation of the shell sort algorithm