CoffeeScript implementation of read_moni_file