fixed tests; put copy_sort addition to Array.prototype outside of jQuery.ready function so it's available in test specs