Hmm, interesting... In that case I don't see a way how avast could mess with JavaScript though...
What makes you think that the problem is related to avast anyway? Did it start happening after installing the program? What operating system are you using?
Thanks