Updating layout styles for js in archive view