Update ViewEvents.js

removed unused vars