HTML test environment and first version of javascript api

curly brace on row above