Added Web API call and js side integration