Simple rest js client