add binding mechanism to test script html