fixed monitoring js