fix logError, document sample jbuild.coffee