Fixes

Two small fixes for  xapistatement.js and example.html