added additional JS code description