A change sorting JavaScript application