Update patch.js