Added Javascript solution to the n-queen problem