JavaScript Program to Check if a Number is a Prime Number