cleanup

Move decode table generation to page load and place on prototype.

Fix a typo in the html test page.