fixes #5; and add setting of free CDN host for js files