Fix #8
Fix #6

- As general best practices - json object generated from xquery should
be encoded using fn:encode-for-uri and then decoded in javascript side
using decodeURIComponent
Set default namespace on list element