refactoring inlineJSLibraries