Add some displayed attachment info into javascript environment