update deprecated method in should.js