HTML test environment and first version of javascript api

Weird change.. remove.