add x:val feature in js-sdk

http://pm.qbox.me/redmine/issues/8351