mv script from html,  create modal popup tools js