updates to kapture so that it binds this correctly, as well as some changes to the stack object so that it is easier to use. And an example webpage to test with.