HAL JS client for browser and nodejs