I found the problem. My HTML head had
<script src="myFile.js" language="javascript" type="text/javascript" /> And the problem is the way i close the tag. If i put <script src="myFile.js" language="javascript" type="text/javascript"></script> It works ok.
