pushing some javascrip for simple query code