Fixing Responsibilities duplication concerns in html and js.