[js] add encode for flash vars
[php] development