We show that the results we had previously obtained on diagonals of 9- and 10-parameter families of rational functions in three variables x, y, and z, using creative telescoping, yielding modular forms expressed as pullbacked 2F1 hypergeometric functions, can be obtained much more efficiently by calculating the j-invariant of an elliptic curve canonically associated with the denominator of the rational functions. These results can be drastically generalized by changing the parameters into arbitrary rational functions of the product p=xyz. In other cases where creative telescoping yields pullbacked 2F1 hypergeometric functions, we extend this algebraic geometry approach to other families of rational functions in three or more variables. In p...