Separated DOM component
Formatted code and comments