Update stats.view.js

Debugging functionality