Fix endings processing; cleanup of whitespaces and comments in tests

In 880bd7d I converted all indentations to spaces; So soft tabs have been used in the JS source files consistently, but it's been less consistent what we used in the HTML files. I think it's best to keep it simple and use soft tabs everywhere; unless there's a good reason to do otherwise...?

Fixes #50