Javascript OpenShift API implementation