JS integration for the main meter complete