structure js file properly

rm unused js library  and template
mv script from html,  create modal popup tools js
put script after dependent js library
ajax vote unvote
add ajax-loading gif
asquestion: ajax-loading class