added more to the test html page. added callback var to query function