Add javascript example for generating random number in range