Updated .js file to trial more query conditions.