Geographic Coordinate Transformations in Javascript

Select radio button to left or right of list to paste selection into left or right SRS field.
SRS:
X:
Y:
Z:
 
 
SRS:
X:
Y:
Z:

checks:
Puerto Rico, 3 param:
$ echo -66 18 | cs2cs -f '%2f' +init=epsg:4326 +to +init=epsg:4139
Luxembourg, 7 param:
$ echo 6 49 | cs2cs -f '%2f' +init=EPSG:4181 +to +proj=longlat +datum=WGS84
Trinidad, 7 param:
$ echo -61 10 | cs2cs -f '%2f' +init=EPSG:4302 +to +proj=longlat +datum=WGS84