Possibly jQuery is not being loaded/added to the page.