Remove all the redundant semicolons.
Remove unnecessary function call.
Refactoring and fix typo.
Add DOM dumper for comparing DOM tree.