updated JS document: part 2