Added 'primes' function to web.js