mv script from html,  create modal popup tools js
put script after dependent js library
ajax vote unvote