Fixed spacing and typos.
Changed version replacement to use a digit/period regex rather than relying on the snippet to be the latest version - not the case with jQuery.