The Brass Bottle by Anstey, F.
 is a Project Gutenberg book, now on Github.