Added some fixes to js and .php
Merge branch 'master' of https://github.com/quantagency/quant