In FF and all, my javascript works fine. But in Chrome it gives this message:
Resource interpreted as script but transferred with MIME type text/plai
I had this problem while using a web framework and fixed it by moving the relevant javascript files into the designated (by the framework) javascript folder.