Completed 'cat.js' example
Added error handling to file watcher