added simple API test to index.html