I had the same problem. However, here’s what I discovered.
I added this line in my JSP:
<INPUT type=”hidden” name=”weeks” value=”<%=weekCounter%>/>
Note the missing ” in the value. I didn’t catch this mistake, but it caused my javascript to not only be uneditable, but also not recognized when I brought the page up (with the server up in a browser).
As soon as I found the missing ” and corrected it, all was happy and gay again.
Hope this helps.