added query to session js file