Update lib/monitor.js

Connect the proxy method to created monitor.