JS implementation of DEJE client