Fix JavaScript and CSS for attachment area