Fix bug in appending jQuery if needed.