Refining what gets saved to array. TODO: get JavaScript to retrieve a line at random. Doesn't have to be JSON, does it?