add command line option to write log to a file instead of the terminal.
add entry_point for dotjs without terminal window, logging to ~/.js/dotjs.log by default.