Added stats for connection status in JS controller