Using JavaScript and CoffeeScript to work out the Münchhausen Numbers