fixed display of javascript errors