work with js part