java script error logger