Fix for console.log not defined & Edit-fail message for IE9