Updating the style and JavaScript