w3c validation, code cleanup