Nabi REST Client Javascript