Worked on the query javascripts.