some view.js cleaning