Adapt to API changes

The index.html and js/main.js are now simplified.
Merge pull request #5 from manuq/simpler-api

Adapt to API changes