added a logger for javascript error messages