Move message handing to Nfc.js.