javascript: fixing comments