Update ocDashboard.js

Optimization of last changes!