work in progress on index.html
work on defining api layer a bit better