Fixed bug #17071: JavaScript errors, used .class instead of .className