counting primes for javascript
remove characters in javascript