updated query.html and added scripts