small code-style fixes and test.html added