Address changes for unused var, global this binding and collection usage in view.js