Super simple pseudo-random number generator in JavaScript