add api to get js_bytes
add missing AutoCompartment call