fixed chain calls in lib and test, used CDN for extraneous files