nodejs: don't break on parse/syntax errors + console output. error handlign now works in client and nodejs