JSONiq Implementation in Pure JavaScript