js correction missing new query statment