Braneworlds and elliptic functions