mta with js works for single line