Moved jquery to head-- that was the source of the problem