Fix broken check in JS queries

Conflicts:
	public/index.html
	public/script.min.js
	sources/script.js