Change obsoleted HTML5 name attributes to either id or class.

Note that the JavaScript function getElementsByClassName() is not
available in IE < 9, but was already used in getScoreboard().