Update patter.js file for libraries