Erase code issue

Hi all,

I have a problem.

I program a little code in js on the cache/modules/Contacts/editview.tpl file.

Then, on administration panel -> studio, i put "required" on a insert.

That erase my js code.

What is the problem? Why erase the code?

Thanks all for the answers.