Adding curve drawing to index.html