HTML+JavaScript to sort & pagination to a multiple column Table