Corrections to the js and the view