Fix JavaScript and CSS for attachment area
Fix comment
Move duplicated JavaScript and CSS for diff to common files
Fix #358