Javascript Extended Error in Node / Browser