Update ViewEvents.js

removed unused vars, fixed comment