fixing issue with jQuery and Foundation