fix copy-paste error, all spxxx_to_jsval use lower case;

fix copy-paste error, all spxxx_to_jsval use lower case and add missing structs getAttachment;