added beginnings of js again. this time, ATC is a class