use js- hooke class