Put JS quicksort compare function in an options hash