reviewing some javascript [github rng repo name: miniature-octo-lana]