REST simple Javascript client