setup methods.js