Invoke service endpoint from JavaScript

Signed-off-by: OwenPatey <owen_patey@hotmail.com>