Ocular application of chitosan