function getLibraryFilenames(directory) {
    return shelljs.find(directory).filter(filename =>
        filename.includes(".js") &&
            !filename.includes(".result.js")).map(filename =>
        filename.slice(directory.length - 1)); // strip off directory
}
Gets library file names
@param {string} directory The directory
@returns {string[]} The file names