Changed some functions in markx.js. Passed too many arguments into the function.