Adding javascript and python implementations