move jquery to head and use wp_enqueue_script to avoid conflicts