Correcting css reference in JS