applied fix from tiantang
Fixed Issue #5 and fixed wordcount after paste text in ie