Add test for javascript quick-sort