clean js on view