Using JavaScript Proxy to automatically time your functions