'class' is a reserved word in JavaScript. :) Changing parameter name to 'className...