Simple logger for javascript errors