translated more js->coffee