Update logtail.js

track error.log