log javascript compilation errors to browser console and to node console