LPS-41209 Properly unwrap javascript wrapper