Update monitor.js

updated the puts to logs function