Changed $ to jQuery to see if it will fix jQuery issues when running in Wordpress.