Sometimes Jquery needs to run on a server. The accordion plugin is a sample. If you run the code directly from a directory, the darn thing does not work. If you run the same code on your localserver it works fine.
Below: Jquery accordion from a file
Below: Jquery from localhost