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 and I figured out how to fix it.
It happens when the style (CSS) file is in a different encoding from the PHP file that references the .css file
For example, using jQuery.js in Unix encoding and using index.php in UTF-8 will cause this problem so you have to make them both UTF-8 or any other encoding as long as it the same.