8 Queens Problem Simulation With Javascript