CSS rules for javascript