update js libraries and use CDN when possible