Updated API usage in html