toh error message, nqueens separate js