HTML test environment and first version of javascript api

I think Locomote should be with a capital L, since it's a "class" which is created with `new`