Defect Fix: Email log JavaScript fix.