Define REST client easily in nodejs