set css properties using js in index.html file