clean view.js from stuff that can be made by jquery.