Fixed whitespace in services.js and corrected function names in region monitoring code