[js] use L.version to build cdn url rather than harcoding version number (closes #4725752) [applied]