lib/util/chain.js:replace Class to NR.Class