fixed issue with animateElement method which required elements to be wrapped in jquery object before being passed to method