dont hardcode demo url
disconnect earlier and build js side query in a nicer way