Implemented for JS-only extension