update js_attachment python script