I think we should put javascript in a separate file and just include it in the view.