good formatting for js errors