HTML test environment and first version of javascript api

Tabs should be 2 spaces instead