replace external sources of js libraries with local copies