Replaced hard-coded HTML test fixture with JavaScript to generate it ane...

...w for each test