added more js comments