Updated comments in javascript