Simple CSS rules manipulation in JS