Have you looked at the ECMAScript Proxy proposal? You might want to consider using the API.
It's more restrictive, but much more easy to use.
It's more restrictive, but much more easy to use.