[html] Fix whitespace and few strict JS warnings