done js part