Joe #19 Extract monitor js into smaller modules