javascript mta