Javascript and style changes