Fixes for SPARQL query through the browser interface

Fixes issues #66 #67 and #68