cleanup javascript by jslint.
add jslint test in testXHTML.