Javascript library for implementing NGSI clients