Prime numbers js