You only get this error if jQuery is not correctly loaded, you can check with firebug what url its trying to load so you can see if your relative path is wrong.
Also, on a separate note, you can use $(function(){
as a shorthand to $(document).ready(function(){