generate markup via js and class name change