Mike, a bit late on for me but where you are using jQuery for the $ phrase:
Have you embedded this code in the page's Head placeholder?
Are you called the jQuery library correctly (at all)?...