How to set background color of HTML element using css properties in JavaScript