Same comment here about "the HTML" vs. "HTML".  Since it's technically javascript, I would leave it as it was and we can make it better on the next pass (by introducing *view* file).