REST API and Javascript SDK Sample