code beuatify

There is no any new code in this commit, only replase all js code in js
folder and autoindent all with http://jsbeautifier.org/
small fixes

change selection box color + remove some unnecessary actions and fix
typo