Added check for jQuery before it is loaded, to prevent it being loaded twice and causing conflicts.