Try to fix js to work when there are multiple sparql samples / page