Meta programming in JavaScript like Proxy shim