Cleanup javascript errors in console log