Moved the assignment of click functions to allow them to be set for
directories too.
Removed writer.html in favor of ACE.