Javascript console like functionality like in the browser dev tools