Use JavaScript in view.