Shortened the HTML a bit
Added initialization logic