finished mta.js