Update matt.js

fixed issue #1