add `_jsify` utility function and use it to refactor proxies