set javascript api endpoints to be fully qualified URLs