Update methods.js