Added Javascript isPrime()